package cn.iocoder.yudao.module.member.convert.user;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.member.controller.admin.user.vo.CrmMemberUserCreateReqVO;
import cn.iocoder.yudao.module.member.controller.admin.user.vo.CrmMemberUserExcelVO;
import cn.iocoder.yudao.module.member.controller.admin.user.vo.CrmMemberUserRespVO;
import cn.iocoder.yudao.module.member.controller.admin.user.vo.CrmMemberUserUpdateReqVO;
import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserGasAddressDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 燃气户 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface CrmMemberUserConvert {

    CrmMemberUserConvert INSTANCE = Mappers.getMapper(CrmMemberUserConvert.class);

    MemberUserGasAddressDO convert(CrmMemberUserCreateReqVO bean);

    MemberUserGasAddressDO convert(CrmMemberUserUpdateReqVO bean);


    CrmMemberUserRespVO convert(MemberUserGasAddressDO bean);

    List<CrmMemberUserRespVO> convertList(List<MemberUserGasAddressDO> list);

    PageResult<CrmMemberUserRespVO> convertPage(PageResult<MemberUserGasAddressDO> page);

    List<CrmMemberUserExcelVO> convertList02(List<MemberUserGasAddressDO> list);

}
